<template>
	<view class="b_width hui">
		<view class="form_box">

			<view class="xx_box">


				<view class="b_flex_c input_box">
					<input v-model="form.hm" class="i_right" placeholder="请输入户名"
						placeholder-style="color:#C2C7CE"></u--input>
					<view class="l_icon"></view>
				</view>
            </view>
			
			
			<view class="xx_box">

				<view class="b_flex_c input_box">
					<input v-model="form.card" class="i_right" placeholder="请输入银行卡号"
						placeholder-style="color:#C2C7CE"></u--input>
					<view class="l_icon"></view>
				</view>
				
			</view>

            <view class="xx_box">
				<view class="b_flex_c input_box">
					<input v-model="form.hu" class="i_right" placeholder="请输入开户行"
						placeholder-style="color:#C2C7CE"></u--input>
					<view class="l_icon"></view>
				</view>
			</view>	
			
			<view class="xx_box">

				<view class="b_flex_c input_box">
					<input  type="digit" v-model="form.num" class="i_right" placeholder="请输入提现金额"
						placeholder-style="color:#C2C7CE"></u--input>
					<view class="l_icon"></view>
				</view>
				
			</view>	

            <view class="yu" v-if="info">当前可提现金额{{info.yu}}</view>
			<view class="sumbit" @click="submit">提交</view>
		</view>
		
		
	</view>
</template>

<script>
	const app = getApp().globalData;
	const {
		imgRemote,
	} = app;
	export default {
		data() {
			return {
				form:{hm:'',card:'',hu:'',num:''},
				info:''
			}
		},
		onLoad(data) {
			this.getInfo();
		},
		onShow() {
		},
		methods: {
			getInfo() {
				this.$get(this.$api.teamTinfo, {
					token: uni.getStorageSync('wxToken')
				}, res => {
					let {code,data}=res.data;
					this.form.hm=data.hm;
					this.form.card=data.card;
					this.form.hu=data.hu;
					this.form.num=data.num;
					this.info=data;
				});
			},
			submit() {
				this.form.token=uni.getStorageSync('wxToken');
				this.$post(this.$api.teamTx, this.form, res => {
					if (res.data.code == 1) {

						this.$Toast(res.data.msg);
						
						uni.navigateBack({});
						

					} else {
						this.$Toast(res.data.msg);
					}

				});
			}
		}
	}
</script>

<style lang="scss" scoped>

	.b_width {
		width: 100%;
	}

	.hui {
		background: #F4F4F4;
		min-height: 100vh;
	}

	.form_box {
		box-sizing: border-box;
		padding: 30rpx 20rpx;
		font-size: 28rpx;
	}

	.xx_box {
		box-sizing: border-box;
		padding:0rpx 30rpx;
		background-color: #fff;
		border-radius: 15rpx;
		margin-bottom: 30rpx;
	}

	.xx_title {
		font-size: 32rpx;
		margin-bottom: 20rpx;
	}

	.i_right {
		text-align: left;
	}

	.l_icon {
		margin-left: 10rpx;
		width: 28rpx;
		height: 28rpx;
	}

	.bz_box {
		box-sizing: border-box;
		padding: 0 0 25rpx 0;
		border-bottom: 1rpx solid #EFEFEF;
	}

	.input_box {
		box-sizing: border-box;
		padding: 30rpx 0;
	}

	.i_b_b {
		border-bottom: 1rpx solid #EFEFEF;
	}


	.upload_box {
		box-sizing: border-box;
		padding: 30rpx 0 0 0;
	}

	.b_flex_c {
		display: flex;
		align-items: center;
	}

	.b_red {
		color: red;
	}

	.b_f_w {
		font-weight: bold;
	}

	.xing {
		width: 18rpx;
		box-sizing: border-box;
		padding: 10rpx 0 0 0;
	}

	.left {
		width: 26%;
	}

	.tc_box {
		width: 50%;
		text-align: center;
	}

	.sumbit {
		//margin-top: 60rpx;
		width:100%;
		height:90rpx;
		line-height:90rpx;
		text-align: center;
		background-color: #F5230C;
		color: #fff;
		border-radius:10rpx;
		margin-top:100rpx ;
	}

	.map_box {
		font-size: 30rpx;
	}

	.shen_box {
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		height: 80vh;
	}

	.right_icon {
		margin-left: auto;
	}

	.msg {
		font-size: 24rpx;
	}

	.s_box {
		text-align: center;
	}

	.s_msg {
		color: #555555;
		margin-top: 80rpx;
	}

	.s_look {
		color: #0F85E0;
		text-decoration: underline;
		margin-top: 40rpx;
		margin-bottom: 40rpx;
	}

	.dj_box {
		box-sizing: border-box;
		padding: 50rpx 20rpx 20rpx 20rpx;
		background-color: white;
		text-align: center;
		width: 500rpx;
	}

	.dj_btn {
		box-sizing: border-box;
		padding: 15rpx 0;
		border-radius: 25rpx;
		background-color: #E34305;
		color: white;
		font-size: 24rpx;
		margin-top: 30rpx
	}
	
	.yu{
		color:#03A0DF;
	}
	
</style>